package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JingfeiZhiliuMapper;
import com.ruoyi.system.domain.JingfeiZhiliu;
import com.ruoyi.system.service.IJingfeiZhiliuService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-29
 */
@Service
public class JingfeiZhiliuServiceImpl implements IJingfeiZhiliuService 
{
    @Autowired
    private JingfeiZhiliuMapper jingfeiZhiliuMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public JingfeiZhiliu selectJingfeiZhiliuById(String id)
    {
        return jingfeiZhiliuMapper.selectJingfeiZhiliuById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param jingfeiZhiliu 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<JingfeiZhiliu> selectJingfeiZhiliuList(JingfeiZhiliu jingfeiZhiliu)
    {
        return jingfeiZhiliuMapper.selectJingfeiZhiliuList(jingfeiZhiliu);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param jingfeiZhiliu 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertJingfeiZhiliu(JingfeiZhiliu jingfeiZhiliu)
    {
        return jingfeiZhiliuMapper.insertJingfeiZhiliu(jingfeiZhiliu);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param jingfeiZhiliu 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateJingfeiZhiliu(JingfeiZhiliu jingfeiZhiliu)
    {
        return jingfeiZhiliuMapper.updateJingfeiZhiliu(jingfeiZhiliu);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteJingfeiZhiliuByIds(String ids)
    {
        return jingfeiZhiliuMapper.deleteJingfeiZhiliuByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteJingfeiZhiliuById(String id)
    {
        return jingfeiZhiliuMapper.deleteJingfeiZhiliuById(id);
    }

    @Override
    public List<Map<String,Object>> JingfeizhiliuList(String deptid, String name){
        return jingfeiZhiliuMapper.JingfeizhiliuList(deptid,name);
    }

    @Override
    public List<Map<String,Object>> findZhiliuByTuikuanjiluId(String tuikuanjiluid,String xingming,String deptname){
        return jingfeiZhiliuMapper.findZhiliuByTuikuanjiluId(tuikuanjiluid,xingming,deptname);
    }
}
